package Groep1;

public class Element {
    protected String name;

    public Element(String name) {
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public int hashCode() {
        return name.hashCode();
    }

    public boolean equals(Object t) {
        if(t instanceof Element)
            return name.equals(((Element)t).name);
        else
            return false;
    }
}
